package com.njtoyo.taxi.admin.logic.data;

import com.njtoyo.taxi.admin.handler.FilterHandler;
import com.njtoyo.taxi.admin.mapper.secondary.entity.data.DashboardDriverServiceDaily;
import com.njtoyo.taxi.admin.mapper.secondary.mapper.DashboardDriverServiceDailyMapper;
import com.njtoyo.taxi.admin.rest.wrapper.data.data_analysis.ChartWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DashboardDriverServiceDailyLogic {
    @Autowired
    private DashboardDriverServiceDailyMapper dashboardDriverServiceDailyMapper;

    public List<DashboardDriverServiceDaily> getRateChart(FilterHandler filter, ChartWrapper wrapper) {
        return dashboardDriverServiceDailyMapper.getRateChart(filter.getCantonIds(), filter.getCompanyIds(), wrapper.getStartTime(), wrapper.getEndTime());
    }

}
